package com.bys.generator;

import com.bys.generator.core.MysqlGenerator;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.Objects;

public class Main {
    public static void main(String[] args) {
        new MysqlGenerator().createCode();
    }

    private void printPath() {
        String path = Objects.requireNonNull(this.getClass().getResource("/")).getPath();
        String decode = null;
        try {
            decode = URLDecoder.decode(path, String.valueOf(StandardCharsets.UTF_8));
            System.out.println(decode);
        } catch (UnsupportedEncodingException e) {
            throw new RuntimeException(e);
        }
    }

}